package com.beyond.market.favorites.dao;

import com.beyond.market.favorites.domain.Favorites;
import org.apache.ibatis.annotations.Mapper;

import java.sql.SQLException;
import java.util.List;

@Mapper
public interface FavoritesMapper {
    public int save(Favorites favorites)throws SQLException;
    public int remove(Integer favortiesId)throws SQLException;
    public int update(Favorites favorites)throws SQLException;
    public Favorites getByPrimaryKey(Integer favortiesId)throws SQLException;
    public List<Favorites> getByUser(Integer userId)throws SQLException;
}
